<template>
	<view class="u-page">
		<u-list @scrolltolower="scrolltolower">
			<u-list-item v-for="(item, index) in indexList" :key="index">
				<view
					style="height: 200rpx;background-color:#fff;margin:10upx 40upx 10upx;padding: 20upx;border-radius: 3%;"
					@click="goZixunxiangqing">
					<u-row customStyle="height:100%">
						<u-col span="8" align="center">
							<u-row customStyle="margin-bottom:10px">
								<view class="">
									艺术品交流会
								</view>
							</u-row>
							<u-row>
								<view class="">
									2024-08-26 20:45:54
								</view>
							</u-row>
						</u-col>
						<u-col span="4">
							<view class="" style="height: 100%;">
								<u-image
									src="https://img2.baidu.com/it/u=4136404846,3323025248&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=1084"
									width="200rpx" height="160rpx"></u-image>
							</view>
						</u-col>
					</u-row>
				</view>
			</u-list-item>
		</u-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				indexList: [],
				urls: [
					'https://cdn.uviewui.com/uview/album/1.jpg',
					'https://cdn.uviewui.com/uview/album/2.jpg',
					'https://cdn.uviewui.com/uview/album/3.jpg',
					'https://cdn.uviewui.com/uview/album/4.jpg',
					'https://cdn.uviewui.com/uview/album/5.jpg',
					'https://cdn.uviewui.com/uview/album/6.jpg',
					'https://cdn.uviewui.com/uview/album/7.jpg',
					'https://cdn.uviewui.com/uview/album/8.jpg',
					'https://cdn.uviewui.com/uview/album/9.jpg',
					'https://cdn.uviewui.com/uview/album/10.jpg',
				]
			}
		},
		onLoad() {
			this.loadmore()
		},
		methods: {
			// 资讯详情
			goZixunxiangqing() {
				uni.navigateTo({
					url: '/moduleA/zixunxiangqing/zixunxiangqing'
				})
			},
			scrolltolower() {
				this.loadmore()
			},
			loadmore() {
				for (let i = 0; i < 30; i++) {
					this.indexList.push({
						url: this.urls[uni.$u.random(0, this.urls.length - 1)]
					})
				}
			}
		},
	}
</script>